package com.sikaryofficial.backend.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sikaryofficial.backend.domain.dto.req.store.StoreCommentListReq;
import com.sikaryofficial.backend.domain.dto.resp.StoreCommentResp;
import com.sikaryofficial.backend.mapper.StoreCommentMapper;
import com.sikaryofficial.backend.domain.entity.StoreComment;
import com.sikaryofficial.backend.service.IStoreCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service
public class StoreCommentService extends ServiceImpl<StoreCommentMapper, StoreComment> implements IStoreCommentService {

	@Autowired
	private StoreCommentMapper storeCommentMapper;

	/**
	 * 店铺评价分页查询
	 * @param page
	 * @param storeCommentListReq
	 * @return
	 */
	@Override
	public IPage<StoreCommentResp> findStoreCommentPage(Page<StoreCommentResp> page, StoreCommentListReq storeCommentListReq) {
		return storeCommentMapper.findStoreCommentPage(page, storeCommentListReq);
	}


}
